package com.onehouse.domain.room.repository;

import com.onehouse.domain.room.model.RoomEntity;

import java.util.List;
import java.util.Optional;

public interface IRoomRepository {
    int insert(RoomEntity room);
    int update(RoomEntity room);
    Optional<RoomEntity> selectByRoomNumber(String roomNumber);
    List<RoomEntity> selectList();
    int deleteByNumber(String roomNuber);
    int deleteById(Long roomId);
    boolean existedById(Long typeId);
}
